<template>
  <li class="the-list bs">
    <a href="javascript:;" @click="toDetail(data.productId)">
      <img :src="data.imageUrl" alt="">
      <div class="name df jcs">
        <p>{{data.englishName}} {{data.chineseName}}</p>
        <span style="color:red;">{{data.discountText}}</span>
      </div>
    </a>
  </li>
</template>
<script>
export default {
  data () {
    return {

    }
  },
  props: ['data'],
  methods: {
    toDetail (id) {
      console.log(id)
      // this.$router.push(`category/${categoryId}`)
    }
  }
}
</script>
<style lang="scss" scoped>
.the-list{
  width: 25%;
  padding: 0 10px;
  margin-top: 10px;
  height: 210px;
  img{
    width: 100%;
  }
  .name{
    line-height: 50px;
    font-size: 12px;
    padding: 0 10px;
  }
}
</style>
